<?php

	include ('../Config/conn.php'); 
	include ('../Model/exemplar.class.php'); 

	$plataforma = isset($_POST['plataforma']) ? $_POST['plataforma'] : '';
	$iditem = isset($_POST['iditem']) ? $_POST['iditem'] : '';
			
	session_start();
	
	$ObjExemplar = new Exemplar($db, 0, '', $iditem, $plataforma, 0, 0, $_SESSION['idUsuario']);
	
	$ObjExemplar->insereExemplar($db);
	
	include ('../Config/destruct.php');
	
?>